﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HuberRace.BusinessLayer
{
    public class Race
    {
        public string Name { get; set; }
        public Distance Distance { get; set; }

        public List<Participant> Participants { get; set; }
        public List<String> Times { get; set; }
        public List<int> Bibs { get; set; }

        public int RaceId { get; set; }
    }

    public class Distance
    {
        public int Length { get; set; }
        public int Units { get; set; }
    }

    public class Participant
    {
        public int Bib { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }
        public char Gender { get; set; }

        public Participant()
        {
        }

        public Participant(string name, int bib, int age)
        {
            this.Name = name;
            this.Bib = bib;
            this.Age = age;
        }
    }
}
